<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}</td>
		
	</tr>
	<tr class="li_1">
	    <td   align="right" ><span class="color_red">*</span>姓名：</td>
		<td  colspan="2">
			<input  name="proposal/leader_name" label="${param.title}-->姓名" type="text" required class="input_css required maxlength:100"  style="width: 120px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/leader_name" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>性别：</td>
		<td  colspan="2">
			<c:set var="leader_gender"><x:out select="$xmlData/data/proposal/leader_gender_value" /></c:set>
			<cpt:select id="leader_gender" name="leader_gender" style="width: 130px;" value="${leader_gender }"  key="gender" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" name="proposal/leader_gender_value"  class="required" value="<x:out select="$xmlData/data/proposal/leader_gender_value" />" label="${param.title}-->性别">
			<input type="hidden" name="proposal/leader_gender_name" value="<x:out select="$xmlData/data/proposal/leader_gender_name" />">
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" ><span class="color_red">*</span>出生日期：</td>
		<td  colspan="2">
			<input type="hidden" id="nowaday" label="当前日期" value="${sercverSysDate1 }">
			<c:set var="leader_birthday"><x:out select="$xmlData/data/proposal/leader_birthday" /></c:set>
			<cpt:date id="leader_birthday" name="proposal/leader_birthday"  value="${leader_birthday}" className="required date dateCompare:nowaday" label="${param.title}-->出生日期" ></cpt:date> 
		</td>
		<td   align="right" ><span class="color_red">*</span>学历：</td>
		<td  colspan="2">
			<c:set var="leader_educate"><x:out select="$xmlData/data/proposal/leader_educate_value" /></c:set>
			<cpt:select id="leader_educate"  key="educate" style="width: 130px;" value="${leader_educate }" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" name="proposal/leader_educate_value"  class="required" value="<x:out select="$xmlData/data/proposal/leader_educate_value" />" label="${param.title}-->学历">
			<input type="hidden" name="proposal/leader_educate_name" value="<x:out select="$xmlData/data/proposal/leader_educate_name" />">
		</td>
	</tr>
	<tr class="li_1">
		<td align="right"><span class="color_red">*</span>职务：</td>
      <td colspan='2' >
       		<input name="proposal/leader_position" type="text" id="position" value="<x:out select='$xmlData/data/proposal/leader_position' />" maxlength="35"  class="required" label="${param.title}-->职务"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>职称：</td>
			<c:set var="proftitlevalue">{'id':'<x:out select='$xmlData/data/proposal/leader_prof_value' />','name':'<x:out select='$xmlData/data/proposal/leader_prof_name' />'}</c:set>
		<td colspan='2'>
			<cpt:tree key="prof_title" cacheable="false" readonly="true" value="${proftitlevalue}" id="leader_prof" showPattern="all" shieldPattern="-1" onClick="initTreeValueExt2"   label="${param.title}-->职称" />
			<input type="hidden" name="proposal/leader_prof_value" value="<x:out select='$xmlData/data/proposal/leader_prof_value' />" class="required" label="${param.title}-->职称" /> 
			<input type="hidden" name="proposal/leader_prof_name" value="<x:out select='$xmlData/data/proposal/leader_prof_name' />" />
		</td>
	</tr>
	<tr class="li_2">
		<td align="right"><span class="color_red">*</span>专业：</td>
      <td colspan='2' >
       		<input name="proposal/leader_major" type="text"   value="<x:out select='$xmlData/data/proposal/leader_major' />" maxlength="35"  class="required" label="${param.title}-->专业"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>电话：</td>
		<td colspan='2'>
			<input name="proposal/leader_phone" type="text"  value="<x:out select='$xmlData/data/proposal/leader_phone' />" maxlength="35"  class="required" label="${param.title}-->电话"/>
		</td>
	</tr>
	<tr class="li_1">
		<td align="right"><span class="color_red">*</span>手机：</td>
      <td colspan='2' >
       		<input name="proposal/leader_mobile" type="text"   value="<x:out select='$xmlData/data/proposal/leader_mobile' />" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0)" class="required mobile" label="${param.title}-->手机"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>电子邮箱：</td>
		<td colspan='2'>
			<input name="proposal/leader_email" type="text"  value="<x:out select='$xmlData/data/proposal/leader_email' />" maxlength="35"  class="required email" label="${param.title}-->电子邮箱"/>
		</td>
	</tr>
	</table>
	<br/>
<script type="text/javascript">

function initTreeValueExt2(treeId, treeNode) {

	var inputId = treeId;
	if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label")
				+ messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val("");
		}
		return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			//str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val(str);
	}
</script>